package com.lm.Adapter;

public class AudioPlayer implements MediaPlayer{

    MediaAdapter mediaAdapter;

    @Override
    public void play(String audioType, String fileName) {
        if(audioType.equals("mp3")){
            System.out.println("Playing mp3 file.name:"+fileName);
        }else{
            if(audioType.equals("vlc")){
                mediaAdapter = new MediaAdapter("vlc");
                mediaAdapter.play("vlc",fileName);
            }else{
                mediaAdapter = new MediaAdapter("mp4");
                mediaAdapter.play("vlc",fileName);
            }
        }
    }
}
